{admin title="My Feed"}

	{include file="file:$theme_global/_messages.tpl"}

	<div class="title"><h1>My Feed</h1></div>

	<a href="/watch/rss/{$loggedInUsername}">Subscribe to My Feed via RSS</a>

	{if count($feeditems) gt 0}
		{if $enable_paging}
			{include file="file:$theme_global/_pager.tpl"}
		{/if}
		<ol>
			{foreach from=$feeditems item=feeditem key=index}
				<li>
					{if $feeditem.thumb_url ne null and $feeditem.thumb_url ne ''}

						<!-- TODO - make thumb link variable and not just link to the author page -->

						<a href="/user/profile/{$feeditem.author}"><img
							src="{$feeditem.thumb_url}" width="48" height="48" alt="" /></a>

						<!-- TODO - make the thumbnail dimensions variable -->
						<!-- TODO - put something in the alt tag -->

					{/if}
					<a href="{$feeditem.url}">{$feeditem.title}</a>
					<span>{$feeditem.howlongago}</span>
					<p>{$feeditem.description}</p>
				</li>
			{/foreach}
		</ol>
	{else}
		<p>
			Your feed is empty.
		</p>
	{/if}

{/admin}
